﻿using Phones.Client.Repository;
using Phones.Client.Model;
using Phones.Client.ViewModel;

namespace Phones.Client.ViewModel
{
    public class ContactTreeNodeViewModel : TreeViewItemBaseViewModel
    {
        private const string IMAGE_SRC = "/Style/contact.png";
        private Contact _contact;

        public ContactTreeNodeViewModel(DepartnemtTreeNodeViewModel parent, Contact con)
            : base(parent, false)
        {
            _contact = con;
        }

        public override string ImageSource
        {
            get { return IMAGE_SRC; }
        }

        public Contact Model
        {
            get { return _contact; }
        }
    }
}
